package com.hyb.service;

import com.hyb.entity.Product;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hyb.page.PageReq;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * <p>
 *  产品Service接口
 * </p>
 *
 * @author hyb
 * @since 2021-12-29
 */
public interface ProductService extends IService<Product> {

    void createProduct(Product product);

    PageReq getProducts(Integer limit, Integer current, String productType, String productSeries, String productBatch);

    Product getProductById(Integer productId);

    void updateProduct(Product product);

    void deleteProduct(Integer productId);

    Product selectProductByVo(String productSeries,String productModel,String productBatch);

    Set<Product> selectProductSeries(String productType);

    List<Product> selectProductModels(String productSeries);

    Product getProductInfoByProductTypeAndProductSeriesAndProductModel(String productType,String productSeries ,String productModel);
}
